﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{

	}

	protected void btnLogin_Click(object sender, EventArgs e)
	{
		//string strName = "";
		//string strPassword = "";

		//strName = txtName.Text;
		//strPassword = txtPassword.Text;



		//if (strName == "admin" && strPassword == "12345")
		//{
		//    lblInfo.Text = "登录成功";
		//}
		//else
		//{
		//    lblInfo.Text = "登录失败";
		//}

		//if (chkSing.Checked == true)
		//{
		//    lblInfo.Text = "唱歌 ";
		//}
		//else
		//{
		//    lblInfo.Text = "";
		//}

		Server.Transfer("showinfo.aspx");
		//if(chkDance.Checked == true)
		//{
		//    lblInfo.Text += "跳舞";
		//}
		//else
		//{
		//    lblInfo.Text += "";
		//}

		//for (int i = 0; i < CheckBoxList1.Items.Count; i++)
		//{
		//    if(CheckBoxList1.Items[i].Selected == true)
		//    {
		//        lblInfo.Text += CheckBoxList1.Items[i].Text;
		//    }
		//}

		//if(RadioButton1.Checked == true)
		//{
		//    lblInfo.Text = "先生";
		//}
		//else
		//{
		//    lblInfo.Text = "女士";
		//}

		

	}

	protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
	{
		lblInfo.Text = DropDownList1.Text;
	}
}
